package com.Food;

import java.sql.Connection;
import java.sql.Statement;


import android.app.Activity;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;


public class FOODActivity 
extends Activity 
{
	public DBAdapter db;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        db = new DBAdapter(this);
        
        Button but_Sin = (Button) this.findViewById(R.id.button_Singleplayer);
        but_Sin.setOnClickListener(new View.OnClickListener() 
        {     	
			@Override
			public void onClick(View v) {
				
				startActivity(new Intent("com.Food.singleplayer"));
				
			}
		});
        
        
        Button but_Mul = (Button) this.findViewById(R.id.button_Multiplayer);
        but_Mul.setOnClickListener(new View.OnClickListener() 
        {
			@Override
			public void onClick(View v) {
				startActivity(new Intent("com.Food.multiplayer"));
				
			}
		});
        
        
        Button but_Join = (Button) this.findViewById(R.id.button_joinMulti);
        but_Join.setOnClickListener(new View.OnClickListener() 
        {
			@Override
			public void onClick(View v) {
				startActivity(new Intent("com.Food.join"));
				
			}
		});
        final TextView t = (TextView) this.findViewById(R.id.textView1);
        Button but_Data = (Button) this.findViewById(R.id.database);
        but_Data.setOnClickListener(new View.OnClickListener() 
        {
			@Override
			public void onClick(View v) 
			{
				
			}
		});
        
        
        

    }

}